
#pragma once
#include "..\List\List.h"
/** \brief This class handles intrests for a person
*
*/
template<class T>
class InterestTable :
        public List<T>
{
public:

        InterestTable() : List<T>()
        {
        }

        InterestTable(const InterestTable &list) //: LinkedList<T>(list)
        {
                Node<T> *n = list.head;
                while (n != nullptr)
                {
                        this->add_at_head(n->data);
                        n = n->next;
                }
        }

        ~InterestTable()
        {

        }

        
};